package edu.uoc.tdp.pac4.server;

import java.awt.Dimension;


import javax.swing.JFrame;
import javax.swing.JPanel;

public class ServerFrame extends JFrame {

	private static final long serialVersionUID = 1L;
	
	public ServerFrame(String title, int width, int height) {
		super(title);
		getContentPane().setPreferredSize(new Dimension(width,height));
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setLocationRelativeTo(null);
	}
	
	public void nuevoPanel(JPanel panel) {
		getContentPane().add(panel);
	}
	
	public void completarFrame() {
		pack();	
		setVisible(true);	
		setResizable(false);
	}	

}
